package com.charlotte.study.gupao.chain.auth.builderchain;

import com.charlotte.study.gupao.chain.auth.genera.Member;
import org.apache.commons.lang3.StringUtils;

/**
 * @author junjie.ding
 * @date 2020/3/16
 */
public class ValidateHandler extends Handler {
    @Override
    public void doHandler(Member member) {
        if(StringUtils.isBlank(member.getLoginName()) || StringUtils.isBlank(member.getLoginPass())){
            System.out.println("登录名或密码不能为空！");
            return;
        }
        this.chain.doHandler(member);
    }
}
